package by.bucha.testproject.content;

import by.bucha.testproject.response.CallbackAsyncTask;
import by.bucha.testproject.response.XmlResultModelResponse;
import by.bucha.testproject.xml.bo.ResultModel;

public class ContentManager {

	private static ContentManager sInstance;

	public static final String RESPONSE_URL = "http://bash.zennexgroup.com/service/ru/get.php?type=last";

	private ContentManager() {

	}

	public static ContentManager getInstance() {
		if (sInstance == null) {
			sInstance = new ContentManager();
		}
		return sInstance;
	}

	public void getResponse(CallbackAsyncTask<ResultModel> paramCallback) {
		new XmlResultModelResponse(paramCallback).start(RESPONSE_URL);
	}

}
